ggplotly(p) %>%
add_trace(
text = ~name,
hoverinfo = "text",
showlegend = F)
Warning: 'bar' objects don't have these attributes: 'fill'
Valid attributes include:
'_deprecated', 'alignmentgroup', 'base', 'basesrc', 'cliponaxis', 'constraintext', 'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hovertemplate', 'hovertemplatesrc', 'hovertext', 'hovertextsrc', 'ids', 'idssrc', 'insidetextanchor', 'insidetextfont', 'legendgroup', 'legendgrouptitle', 'legendrank', 'marker', 'meta', 'metasrc', 'name', 'offset', 'offsetgroup', 'offsetsrc', 'opacity', 'orientation', 'outsidetextfont', 'selected', 'selectedpoints', 'showlegend', 'stream', 'text', 'textangle', 'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'texttemplate', 'texttemplatesrc', 'transforms', 'type', 'uid', 'uirevision', 'unselected', 'visible', 'width', 'widthsrc', 'x', 'x0', 'xaxis', 'xcalendar', 'xhoverformat', 'xperiod', 'xperiod0', 'xperiodalignment', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'yhoverformat', 'yperiod', 'yperiod0', 'yperiodalignment', 'ysrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isSimpleKey', '_isGraticule', '_bbox'
Warning: 'bar' objects don't have these attributes: 'fill'
Valid attributes include:
'_deprecated', 'alignmentgroup', 'base', 'basesrc', 'cliponaxis', 'constraintext', 'customdata', 'customdatasrc', 'dx', 'dy', 'error_x', 'error_y', 'hoverinfo', 'hoverinfosrc', 'hoverlabel', 'hovertemplate', 'hovertemplatesrc', 'hovertext', 'hovertextsrc', 'ids', 'idssrc', 'insidetextanchor', 'insidetextfont', 'legendgroup', 'legendgrouptitle', 'legendrank', 'marker', 'meta', 'metasrc', 'name', 'offset', 'offsetgroup', 'offsetsrc', 'opacity', 'orientation', 'outsidetextfont', 'selected', 'selectedpoints', 'showlegend', 'stream', 'text', 'textangle', 'textfont', 'textposition', 'textpositionsrc', 'textsrc', 'texttemplate', 'texttemplatesrc', 'transforms', 'type', 'uid', 'uirevision', 'unselected', 'visible', 'width', 'widthsrc', 'x', 'x0', 'xaxis', 'xcalendar', 'xhoverformat', 'xperiod', 'xperiod0', 'xperiodalignment', 'xsrc', 'y', 'y0', 'yaxis', 'ycalendar', 'yhoverformat', 'yperiod', 'yperiod0', 'yperiodalignment', 'ysrc', 'key', 'set', 'frame', 'transforms', '_isNestedKey', '_isSimpleKey', '_isGraticule', '_bbox'
LS0tCnRpdGxlOiAiUGxvdCBUZXN0IE5vdGVib29rIgpvdXRwdXQ6IGh0bWxfbm90ZWJvb2sKLS0tCgoKCgpgYGB7cn0KaW5wdXQgPC0gbGlzdCgKICB5ZWFyX2lucHV0ID0gMjAxMCwKICBnZW5yZV9pbnB1dCA9ICJTaG9vdGVyIgogIAopCmBgYAoKCgoKCgpgYGB7cn0KcCA8LSAKICBnYW1lX3NhbGVzICU+JSAKICBmaWx0ZXIoeWVhcl9vZl9yZWxlYXNlID09IGlucHV0JHllYXJfaW5wdXQsCiAgICAgICAgIGdlbnJlID09IGlucHV0JGdlbnJlX2lucHV0KSAlPiUgCmdncGxvdCgpICsKICBhZXMoeCA9IHBsYXRmb3JtLAogICAgICB5ID0gc2FsZXMsCiAgICAgIGZpbGwgPSBwbGF0Zm9ybSkgKwogIGdlb21fY29sKCkKCgoKZ2dwbG90bHkocCkgJT4lIAogYWRkX3RyYWNlKAogICAgICAgICAgdGV4dCA9IH5uYW1lLAogICAgICAgICAgaG92ZXJpbmZvID0gInRleHQiLAogICAgICAgICAgc2hvd2xlZ2VuZCA9IEYpCiAgICAgICAgICAgIApgYGAKCgoK